package terra.model;

import terra.definitions.WeatherDef;
import terra.model.effect.AbstractEffect;
import terra.model.effect.WeatherEffect;
import terra.slick.GameState;

public class ClientWeather extends Weather {
	
	public AbstractEffect effect;
	
	public ClientWeather(WeatherDef d) {
		super(d);
	}

	public void setEffect() {
		if (def.id == 0)
			return;
		if (!def.name.equalsIgnoreCase("sunny")){
			effect = new WeatherEffect(this);
			GameState.getInstance().effects.add(effect);
		}
		
	}

}
